﻿using UnityEngine;
using System.Collections;

public class Weapon : KnapsackGood
{
    public int damage { get; set; }
    public WeaponType weaponType { get; set; }

    public Weapon(int damage, Weapon.WeaponType weaponType, BaseProperty baseProperty): base(baseProperty)
    {
        this.damage = damage;
        this.weaponType = weaponType;
    }

    public enum WeaponType
    {
        None,
        OffHand,
        MainHand
    }

	public override string GetDescribe()
	{
		string baseDecribe = base.GetDescribe();

		string weaponDescribe = string.Format("{0}\n\n<color=blue>武器类型：{1}\n攻击力：{2}</color>", "武器",baseDecribe, weaponType.ToString(), damage);

		return weaponDescribe;
	}
}
